﻿namespace TiaoTiaoCode.AutoUpdate.Common.Responses
{
    /// <summary>
    /// Api接口返回对象
    /// </summary>
    public class ApiResponse
    {
        /// <summary>
        /// 是否成功
        /// </summary>
        public bool IsSuccess { get; set; }

        /// <summary>
        /// 消息编码
        /// </summary>
        public string Code { get; set; } = default!;

        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; } = default!;
    }

    /// <summary>
    /// Api接口返回对象
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ApiResponse<T> : ApiResponse
    {
        /// <summary>
        /// 返回数据
        /// </summary>
        public T Data { get; set; } = default!;
    }
}
